from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns(
    '',
    #teamquest
    (r'^teamquest/$', 'src.iasna_teamquest.views.index'),
    (r'^teamquest/results/$', 'src.iasna_teamquest.views.results'),
    (r'^teamquest/results/(?P<xmlfile>\w+)/$', 'src.iasna_teamquest.views.view_xmlfile'),
    (r'^teamquest/upload_file/$', 'src.iasna_teamquest.views.upload_file'),
    #core
    (r'^iasna/$', 'src.iasna_core.views.index'),
    (r'^iasna/analysis/$', 'src.iasna_core.views.analysis'),
    (r'^iasna/analysis/(?P<xmlfile>\w+)/$', 'src.iasna_core.views.analysis_group'),
    (r'^iasna/results/$', 'src.iasna_core.views.results'),
    (r'^iasna/results/(?P<xmlfile>\w+)/$', 'src.iasna_core.views.results_group'),
    (r'^iasna/upload/$', 'src.iasna_core.views.upload_file'),
    #reflexion
    (r'^reflexion/$', 'src.iasna_reflexion.views.index'),
    (r'^reflexion/(?P<type>\w+)/$', 'src.iasna_reflexion.views.indicator_type'),
    (r'^reflexion/(?P<type>\w+)/(?P<activity>\w+)/$', 'src.iasna_reflexion.views.activity_group'),
    (r'^reflexion/(?P<type>\w+)/(?P<activity>\w+)/(?P<indicator>\w+)/$', 'src.iasna_reflexion.views.indicator'),
    #recommendation
    (r'^recommendation/$', 'src.iasna_recommendation.views.index'),
    (r'^recommendation/manage_messages/$', 'src.iasna_recommendation.views.manege_messages'),
    (r'^recommendation/manage_types/$', 'src.iasna_recommendation.views.manage_types'),
)
